home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
apply.z
/
apply
Wrap
Text File
|
1998-10-20
|
2KB
|
67 lines
AAAAPPPPPPPPLLLLYYYY((((1111)))) AAAAPPPPPPPPLLLLYYYY((((1111))))
NNNNAAAAMMMMEEEE
apply - apply a command to a set of arguments
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
aaaappppppppllllyyyy [ ----aaaac ] [ ----n ] command args ...
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_a_p_p_l_y runs the named _c_o_m_m_a_n_d on each argument _a_r_g in turn. Normally,
arguments are chosen singly; the optional number _n specifies the number
of arguments to be passed to _c_o_m_m_a_n_d. If _n is zero, _c_o_m_m_a_n_d is run
without arguments once for each _a_r_g. Character sequences of the form %_d
in _c_o_m_m_a_n_d, where _d is a digit from 1 to 9, are replaced by the _dth
following unused _a_r_g. If any such sequences occur, _n is ignored and the
number of arguments passed to _c_o_m_m_a_n_d is the maximum value of _d in
_c_o_m_m_a_n_d. The character `%' may be changed by the ----aaaa option.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
apply echo *
is similar to _l_s(1);
apply -2 cmp a1 b1 a2 b2 ...
compares the `a' files to the `b' files
apply -0 who 1 2 3 4 5
runs _w_h_o(1) 5 times
apply 'ln %1 /usr/joe' *
links all files in the current directory to the directory /usr/joe
SSSSEEEEEEEE AAAALLLLSSSSOOOO
sh(1).
BBBBUUUUGGGGSSSS
Shell metacharacters in _c_o_m_m_a_n_d may have bizarre effects; it is best to
enclose complicated commands in single quotes (' ').
There is no way to pass a literal `%2' if `%' is the argument expansion
character.
PPPPaaaaggggeeee 1111